﻿<UserControl x:Class="RL.ucRouteInfo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="182" d:DesignWidth="553" xmlns:my="clr-namespace:RL">
    <Grid Width="534">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="134*" />
            <ColumnDefinition Width="134*" />
            <ColumnDefinition Width="134*" />
            <ColumnDefinition Width="134*" />
        </Grid.ColumnDefinitions>
        <Label Content="Выход" Grid.RowSpan="2" Height="28" HorizontalAlignment="Left" Margin="0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Выезд (чч:мм)" Grid.Row="1" Height="28" HorizontalAlignment="Left" Margin="0" Name="label3" />
        <Label Content="Возвр. (чч:мм)" Grid.Row="2" Height="28" HorizontalAlignment="Left" Name="label4" VerticalAlignment="Top" />
        <Label Content="Проб. общ. (км)" Grid.Row="3" Height="28" HorizontalAlignment="Left" Name="label5" VerticalAlignment="Top" />
        <Label Content="Проб. нул. (км.)" Grid.Row="4" Height="28" HorizontalAlignment="Left" Name="label6" VerticalAlignment="Bottom" />
        <Label Content="Рейсы пл.(кол-во)" Grid.Column="2" Height="28" HorizontalAlignment="Left" Margin="0" Name="label7" VerticalAlignment="Top" Grid.Row="1" />
        <Label Content="Время раб. (часов)" Grid.Column="2" Grid.Row="2" Height="28" HorizontalAlignment="Left" Name="label8" VerticalAlignment="Top" />
        <Label Content="Время отдыха (часов)" Grid.Column="2" Grid.Row="3" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label9" VerticalAlignment="Top" />
        <Label Content="Доход. план (руб.)" Grid.Column="2" Grid.Row="4" Height="28" HorizontalAlignment="Left" Margin="0,0,0,0" Name="label10" VerticalAlignment="Top" />
        <TextBox Grid.Column="1" Name="textBoxDeparture" Margin="0,0,0,29" Text="{Binding Path=numberDeparture}" />
        <my:ucTime Grid.Column="1" Grid.Row="1" x:Name="ucTimeDeparture" Margin="0,0,0,0" Height="30" Time="{Binding Path=departure, Mode=TwoWay}"/>
        <my:ucTime Grid.Column="1" Grid.Row="2" x:Name="ucTimeArrive" Margin="0,0,0,0"  Height="30" Time="{Binding Path=arrive, Mode=TwoWay}"/>
        <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxLength" Margin="0,0,0,0" Text="{Binding Path=total_length}"/>
        <TextBox Grid.Column="1" Grid.Row="4" Name="textBoxLengthZero" Margin="0,0,0,0" Text="{Binding Path=total_free_length}"/>
        <TextBox Grid.Column="3" Grid.Row="1" Name="textBoxReisPlan" Margin="0,0,0,0" Height="30" Text="{Binding Path=total_reis}" />
        <TextBox Grid.Column="3" Grid.Row="2" Name="textBoxWorkTime" Margin="0,0,0,0" Text="{Binding Path=total_work_time}"/>
        <TextBox Grid.Column="3" Grid.Row="3" Name="textBoxRestTime" Margin="0,0,0,0" Text="{Binding Path=total_rest_time}"/>
        <TextBox Grid.Column="3" Grid.Row="4" Name="textBoxSumPlan" Margin="0,0,0,0" Text="{Binding Path=sum_plan}"/>
        <my:ucDayWeeks Grid.Column="2" Grid.ColumnSpan="2" Grid.RowSpan="1" x:Name="ucDayWeeks1" ScheduleID="{Binding Path=id_schedule, Mode=TwoWay}"/>
    </Grid>
</UserControl>
